---

---

<script src='./captcha.js'></script>

<script is:inline>
  window.onCaptchaLoad = function () {
    if (!window.grecaptcha) {
      console.warn('window.grecaptcha is not defined');
      return;
    }

    const recaptchaFields = document.querySelectorAll('.recaptcha-field');

    // render recaptcha on fields
    recaptchaFields.forEach((field) => {
      // If captcha already rendered for this field
      if (field.hasAttribute('data-recaptcha-id')) {
        return;
      }

      const renderedId = window.grecaptcha.render(field, {
        sitekey: '6Ldn2YsjAAAAABlUxNxukAuDAUIuZIhO0hRVxzJW',
      });

      field.setAttribute('data-recaptcha-id', renderedId);
    });
  };
</script>

<script
  src='https://www.google.com/recaptcha/api.js?onload=onCaptchaLoad&render=explicit'
  async
  defer
></script>